package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 电享生活app用户渠道表
 * </p>
 *
 * @author cfx
 * @since 2020-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DxshAppUserChannel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 店铺ID
     */
    private Integer businessId;

    /**
     * 觅东东店铺认领id,用于数据重用
     */
    private Integer businessAuthId;

    /**
     * 小程序appid
     */
    private String minAppId;

    /**
     * 小程序appid
     */
    private String storeId;

    /**
     * 渠道细分，1：小程序，2：觅东东，3：智能硬件
     */
    private Integer channel;

    private Integer channelStatus = 0;

    private String signCode = "";

    /**
     * 行业id
     */
    private Integer industryId;

    @TableField(exist = false)
    private String industryName;

    @TableField(exist = false)
    private String vendorName;

    @TableField(exist = false)
    private String loginUrl;

    @TableField(exist = false)
    private Integer businessRole;

    /**
     * 创建时间
     */
    private LocalDateTime newTime;



    /**
     * 是否展示在首页 0不展示 1展示
     */
    private Integer isShow;

    /**
     * 点击时间
     */
    private LocalDateTime clickTime;

    /**
     * 是否开启短信通知 0不 1要
     */
    private Integer isSmsNotice;

    /**
     * 银行账户类型
     */
    private Integer bankAccountType;

    /**
     *
     *开户名称
     */
    private String openAccountName;

    /**
     * 开户银行名称
     */
    private String openBankName;

    /**
     * 支行名称
     */
    private String subBranchName;

    /**
     * 银行账户
     */
    private String bankAccount;


    /**
     * 收款信息状态，-1:未提交收款信息，0：审核中，1：通过审核，2：未通过审核
     */
    private Integer collectionInfoStatus = -1;

    private String templateName;

    /**
     * 是否完整创建
     */
    private Integer isFill = 0;

    private Integer isFinish = 0;

    private String demoId;

    private Integer isQualification = 0;

    private Integer isClaimShop = 0;

    private Integer isSubmitMddInfo = 0;

    private Integer qualificationStatus = 0;

    private Integer isChooseMinIndustry = 0;

    private Integer chooseMinIndustryId = 0;

    private Integer isConfirmPreData = 0;

    private Integer isChooseTemplate = 0;

    private String chooseTemplateData;

    private Integer minAppStatus = 0;

    private String appid;

    private String minAppName;

    private Integer minappBaseInfoStatus = -1;
    private Integer minappBaseInfoErrorStatus = 0;
    private Integer minappManInfoStatus = -1;

    private Integer minappAuditStatus = -1;

    private String minappQrcode = "";

    private String minAppBodies;

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String BUSINESS_ID = "business_id";

    public static final String BUSINESS_AUTH_ID = "business_auth_id";


    public static final String MIN_APP_ID = "min_app_id";

    public static final String CHANNEL = "channel";

    public static final String NEW_TIME = "new_time";

    public static final String IS_SHOW = "is_show";

    public static final String CLICK_TIME = "click_time";

    public static final String IS_SMS_NOTICE = "is_sms_notice";

    public static final String  BANK_ACCOUNT_TYPE = "bank_account_type";

    public static final String  OPEN_ACCOUNT_NAME = "open_account_name";

    public static final String  OPEN_BANK_NAME = "open_bank_name";

    public static final String  SUB_BRANCH_NAME = "sub_branch_name";

    public static final String  BANK_ACCOUNT  = "bank_account";

    public static final String  IS_FILL = "is_fill";

    public static final String  IS_FINISH = "is_finish";

    public static final String  DEMO_ID = "demo_id";

    public static final String  STORE_ID = "store_id";

    public static final String APP_ID = "appid";
}
